#define _CRT_SECURE_NO_WARNINGS 1

#include<iostream>
//#include<string>
using namespace std;

int main()
{
	string sr("world");
	sr.insert(0, "hello");
	//sr.insert(5,1,' ');
	sr.insert(sr.begin() + 5, ' ');
	sr.erase(5, 1);

	string::iterator it = sr.begin();
	while (it!=sr.end())
	{
		cout << *it;
		it++;
	}
	cout << endl;
	return 0;
}